package cn.zy.org.mapper;

import cn.zy.org.domain.Shop;
import cn.zy.basic.mapper.BaseMapper;
import cn.zy.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zy
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByNameAndAddress(Shop shop);

    //多参数操作：1.注解@Param 2.#{} 3.Map
    void updateState(@Param("state") Integer state, @Param("shopId")Long shopId);
    //查询每一种状态的数量
    List<ShopDto> echarts();
}
